package com.vortex.cloud.zhsw.xinyang.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.liaochong.myexcel.core.annotation.ExcelColumn;
import com.vortex.cloud.vfs.lite.base.dto.AbstractBaseTenantDTO;
import com.vortex.cloud.vfs.lite.base.dto.GeometryDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author zhanglei
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TaskDTO extends AbstractBaseTenantDTO<TaskDTO> {
    @Schema(description = "名称'")
    @ExcelColumn(title = "名称", format = "yyyy-MM-dd")
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Schema(description = "日期'")
    @ExcelColumn(title = "日期", format = "yyyy-MM-dd")
    private LocalDate taskDate;
    @Schema(description = "年月日时分秒'")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelColumn(title = "年月日时分秒", format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime taskDateTime;
    @Schema(description = "类型'")
    @ExcelColumn(title = "类型")
    private String typeCode;
    @Schema(description = "组织机构'")
    @ExcelColumn(title = "组织机构")
    private String deptOrgId;
    @Schema(description = "行政区划'")
    @ExcelColumn(title = "行政区划")
    private String divisionId;
    @Schema(description = "用户'")
    @ExcelColumn(title = "用户")
    private String userId;
    @Schema(description = "人员'")
    @ExcelColumn(title = "人员")
    private String staffId;
    @Schema(description = "附件'")
    @ExcelColumn(title = "附件")
    private String attachs;
    @Schema(description = "位置'")
    @ExcelColumn(title = "位置")
    private GeometryDTO location;
}
